Float.class_eval do
  def to_mins_mile
    PaceConverter.new(self).to_mins_mile
  end
  
  def to_miles_hour 
    PaceConverter.new(self).to_miles_hour
  end
  
  def to_mins_km
    PaceConverter.new(self).to_mins_km
  end
    
  def to_kms_hour
    PaceConverter.new(self).to_kms_hour
  end
  
  def to_meters_sec
    PaceConverter.new(self).to_meters_sec
  end

  def to_mm_ss
    time = 60 * self
    minutes = (time/60).to_i
    seconds = (time - (minutes * 60)).to_i
    return "#{minutes.to_s.rjust(2, '0')}:#{seconds.to_s.rjust(2, '0')}"
  end

end
